package com.scau.service;

import com.scau.exception.FileUtilException;
import com.scau.exception.GoodsStockException;
import com.scau.pojo.Goods;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IGoodsService {
    //查
    public List<Goods> getAllGoodss();
    public List<Goods> getBrandGoodss(String username);
    public List<Goods> getBrandGoodsByName(String username, String goodsName);
    public Goods getBrandGoods(String id);
    //增
    public int addBrandGoods(Goods goods, MultipartFile img) throws IOException;
    //改
    //整体改
    public Goods updateBrandGoods(Goods goods, MultipartFile img);
    //改状态
    public int updateBrandGoodsStatus(Goods goods);
    //改内存
    public void updateBrandGoodsStock(String id, int quantity,int type) throws GoodsStockException;
    //删
    public Goods deleteBrandGoods(String id) throws FileUtilException;
}
